import { Module } from '@nestjs/common';
import { UserModule } from './modules/user/user.module';
import { APP_FILTER, APP_INTERCEPTOR} from '@nestjs/core';
import { HttpExceptionfilter } from './common/filters/http-exception.filter';
import { ResponseInterceptor } from './common/interceptors/response.interceptor';

@Module({
  imports: [UserModule],
  controllers: [],
  providers: [
    {
      provide: APP_FILTER,
      useClass: HttpExceptionfilter,
    },
    {
      provide: APP_INTERCEPTOR,
      useClass: ResponseInterceptor,
    }
  ],
})
export class AppModule {}
